<br/>
<div>

<style>
.moneyTable td{		
		padding:10px;
		border-bottom: #CCCCCC 1px solid;
		font-family:Verdana,Arial,sans;
	}  
.sub{
		background:url(../images/sprite.png)  no-repeat 9999px 9999px;
		width:166px; height:28px; cursor:pointer; background-position:-204px -1614px; border:0 none; color:#FFF; font-weight:bold; font-size:13px;
		margin-top: 4px;
}
</style>
<div align="center">
	<table class="moneyTable" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">
		<tr style="background: #cccccc;">
			 <td colspan="2" class="se" align="center" style="font-weight: bold;">
				Paypal payment
			 </td>
    	</tr>
		<tr>
			<td width="200px">Type</td><td width="200px">Amounts</td>
		</tr>
		<tr>
			<td>Amounts</td><td>$<?=($this->total+$this->coupon)?></td>
		</tr>		
		<tr>
			<td>Fees</td><td>$<?=round(($this->total-$this->my_coupon)*(PAYPAL_RATE-1),2)?></td>
		</tr>
		<tr>
			<td>Coupon</td><td>-$<?=$this->coupon?></td>
		</tr>
		<tr>
			<td>Total</td><td>$<?=$this->acctualTotal?></td>
		</tr>
		<tr>
			<td colspan="2" align="left" style="width: 442px;">
				<font color="red">Please Pay attention for your paypal email, we will send you the PayPal request to it in 12 hours, You can pay the request after you got it, then we will give you the confirmation after we got your payment. Thanks a lot. If you have any questions, please contact us.</font>
			</td>
		</tr>
		<tr>
			 <td colspan="2" class="se" align="center" style="border: none;">
			 	<input name="button2" type="button" class="sub" value="OK"  onclick="window.location.href='/'" />　　
			 </td>
    	</tr>
	</table>
</div>
<form id="paypalForm" action="<?=PAYPAL_URL?>" method="post">
	<div>
		<input type="hidden" name="cmd" value="_xclick">
		<input type="hidden" name="business" value="<?=PAYPAL_ACCOUNT?>"> 
		<input type="hidden" name="item_name" value="<?=$this->item_name?>">
		<input type="hidden" name="item_number" value="Item Number Goes Here "> 
		<input type="hidden" name="amount" value="<?=$this->acctualTotal?>"> 
		<input type="hidden" name="no_shipping" value="1"> 
		<input type="hidden" name="no_note" value="1"> 
		<input type="hidden" name="currency_code" value="USD"> 
		<input type="hidden" name="notify_url" value="<?=MY_URL?>/pay-receive?uid=<?=$this->uid?>"> 
		<input type="hidden" name="return" value="<?=MY_URL?>">
		<input type="hidden" name="cancel_return" value="<?=MY_URL?>/product-pay">  
	</div>
</form>
<script>
function confirmToPay(type){
	if(type=='0'){
		window.location.href="product-pay";
	}else{
		$('#paypalForm').submit();
	}
}

</script>
</div>